//
//  MKPointAnnotation+LXImage.m
//  LXLocationRelated
//
//  Created by Livespro on 2017/10/26.
//  Copyright © 2017年 Livesxu. All rights reserved.
//

#import "MKPointAnnotation+LXImage.h"
#import <objc/runtime.h>

static char pointAnnotationImageKey;

@implementation MKPointAnnotation (LXImage)

- (void)setImageName:(NSString *)imageName {
    objc_setAssociatedObject(self, &pointAnnotationImageKey, imageName, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)imageName {
    return objc_getAssociatedObject(self, &pointAnnotationImageKey);
}

@end
